import React,{Component} from 'react'

export default class Demo09_ref_children2 extends Component {
  constructor(props){
    super(props);

  }
  handleClick(){
    console.log(this.props.myInfo)
  }
  render(){
    return (
        <button onClick={this.handleClick.bind(this)}>
          获取兄弟组件的inputval
        </button>
    )
  }

}